<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
alert(navigator.userAgent);
</script>
</head>
<body>
<button>获取浏览器</button>
</body>
</html>